package com.xue566.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @Author: Wuzh
 * @Description: 学校表
 * @Data:
 */
@Data
@NoArgsConstructor //无参构造
@Accessors(chain = true) //链式
@TableName(value = "school_info")
public class SchoolEntity extends BaseEntity {

    @TableId(value = "schoolId", type = IdType.INPUT)
    private String schoolId;
    @TableField(value = "centerId")
    private String centerId;
    @TableField(value = "schoolName")
    private String schoolName;
    @TableField(value = "schoolAddress")
    private String schoolAddress;
    @TableField(value = "life")
    private int life;
    @TableField(value = "type")
    private int type;
    @TableField(value = "userId")
    private String userId;
    @TableField(value = "createTime")
    private String createTime;
    @TableField(value = "isUsed")
    private int isUsed;

    public String getSchoolId () {
        return schoolId;
    }

    public void setSchoolId (String schoolId) {
        this.schoolId = schoolId;
    }

    public String getCenterId () {
        return centerId;
    }

    public void setCenterId (String centerId) {
        this.centerId = centerId;
    }

    public String getSchoolName () {
        return schoolName;
    }

    public void setSchoolName (String schoolName) {
        this.schoolName = schoolName;
    }

    public String getSchoolAddress () {
        return schoolAddress;
    }

    public void setSchoolAddress (String schoolAddress) {
        this.schoolAddress = schoolAddress;
    }

    public int getLife () {
        return life;
    }

    public void setLife (int life) {
        this.life = life;
    }

    public int getType () {
        return type;
    }

    public void setType (int type) {
        this.type = type;
    }

    public String getUserId () {
        return userId;
    }

    public void setUserId (String userId) {
        this.userId = userId;
    }

    public String getCreateTime () {
        return createTime;
    }

    public void setCreateTime (String createTime) {
        this.createTime = createTime;
    }

    public int getIsUsed () {
        return isUsed;
    }

    public void setIsUsed (int isUsed) {
        this.isUsed = isUsed;
    }
}
